property blogid : 1
property username : "user"
property passwd : "passwd"

Publish("Mono gives you dream running C# on Unix/Linux", "Mono 2.0 is a portable and open source implementation of the .NET framework for Unix, Windows, MacOS and other operating systems. Currently release is 2.2. <br> http://www.mono-project.com/", {"Technology", "Mac Savvy", "Unix Geek"}, "Mono, Unix, Linux, Mac")

on Publish(title, content, categories, tags)
	tell application "http://mywordpress.com/xmlrpc.php"
		
		set content to {title:title, description:content, categories:categories, mt_keywords:tags}
		
		set ret to call xmlrpc {method name:"metaWeblog.newPost", parameters:{blogid, username, passwd, content, 1}}
		
	end tell
end Publish
